﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_PROD_COST_COEFFICIENT
// * CreateDate    : 2011-11-11 15:57:06
// * Creater       : CodeSmith
// * LastChangeDate: 2011-11-11 15:57:06
// * LastChanger   : 2011-11-11 15:57:06
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class ProdCostCoefficientTable : TableInfo
    {
        public const string C_TableName = "PROD_COST_COEFFICIENT";

        public const string C_COST_COFFICIENT_ID = "COST_COFFICIENT_ID";
        public const string C_PRODUCT_ID = "PRODUCT_ID";
        public const string C_COST_COFFICIENT = "COST_COFFICIENT";
        public const string C_CREATE_DATE = "CREATE_DATE";
        public const string C_CREATE_BY = "CREATE_BY";
        public const string C_APPROVED_DATE = "APPROVED_DATE";
        public const string C_APPROVED_BY = "APPROVED_BY";
        public const string C_REMARK = "REMARK";
        public const string C_STATUS = "STATUS";

        public ProdCostCoefficientTable()
        {
            _tableName = "PROD_COST_COEFFICIENT";
        }

        protected static ProdCostCoefficientTable _current;
        public static ProdCostCoefficientTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new ProdCostCoefficientTable();

            _current.Add(C_COST_COFFICIENT_ID, new ColumnInfo(C_COST_COFFICIENT_ID, "CostCofficientId", true, typeof(string)));
            _current.Add(C_PRODUCT_ID, new ColumnInfo(C_PRODUCT_ID, "ProductId", false, typeof(string)));
            _current.Add(C_COST_COFFICIENT, new ColumnInfo(C_COST_COFFICIENT, "CostCofficient", false, typeof(decimal)));
            _current.Add(C_CREATE_DATE, new ColumnInfo(C_CREATE_DATE, "CreateDate", false, typeof(DateTime)));
            _current.Add(C_CREATE_BY, new ColumnInfo(C_CREATE_BY, "CreateBy", false, typeof(string)));
            _current.Add(C_APPROVED_DATE, new ColumnInfo(C_APPROVED_DATE, "ApprovedDate", false, typeof(DateTime)));
            _current.Add(C_APPROVED_BY, new ColumnInfo(C_APPROVED_BY, "ApprovedBy", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK, "Remark", false, typeof(string)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS, "Status", false, typeof(string)));

        }

        public ColumnInfo COST_COFFICIENT_ID
        {
            get { return this[C_COST_COFFICIENT_ID]; }
        }

        public ColumnInfo PRODUCT_ID
        {
            get { return this[C_PRODUCT_ID]; }
        }

        public ColumnInfo COST_COFFICIENT
        {
            get { return this[C_COST_COFFICIENT]; }
        }

        public ColumnInfo CREATE_DATE
        {
            get { return this[C_CREATE_DATE]; }
        }

        public ColumnInfo CREATE_BY
        {
            get { return this[C_CREATE_BY]; }
        }

        public ColumnInfo APPROVED_DATE
        {
            get { return this[C_APPROVED_DATE]; }
        }

        public ColumnInfo APPROVED_BY
        {
            get { return this[C_APPROVED_BY]; }
        }

        public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }

        public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }



    }
}

